Chris Pollett > Old Classses >
CS116a

( Print View )

Student Corner:
  [Grades Sec1]
  [Submit Sec1]
  [Class Sign Up Sec1]
  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [Class Protocols]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Quizzes]

Practice Exams:
  [Midterm]  [Final]

                           












HW#2 --- last modified February 07 2019 04:34:02..

Solution set.

Due date: Oct 2

Files to be submitted:
  Hw2.zip

Purpose: To gain experience with translations, rotations, and scalings in OpenGL.

Related Course Outcomes:

The main course outcomes covered by this assignment are:

LO2 -- Create simple 2D or 3D scenes in OpenGL.

LO5 -- Write an OpenGL program that makes used of 2D or 3D affine transformations.

Specification:

For this homework, you will create a simple 3D scene consisting of a "Jumping Jack Man". Jumping Jack is a humanoid figure built out of six right rectangular prisms: a head, a torso, two arms and two legs. The starting point for coding this character can be the Hello World 3D code on the book's web site. Your code should be submitted in a file Hw2.zip. When run your program should show a front, face-on view of Jumping Jack. While the 1 key is pressed, you should draw the scene looking down from above Jumping Jack's head. While the 2 key is pressed, you should draw the scene standing the same distance away from Jumping Jack as in the front view but from a vantage looking toward his right side. Jumping Jack can do four exercises: he can do a jumping jack while the j key is pressed (arms and legs outstretched), he can twist his torso 45 degrees (left or right your choice) while the t key is pressed, he can supersize (become twice as big in each dimension) while the s key is pressed, finally, while the h key is pressed he hops a fixed displacement to either the left or right. You do not have to animate these exercises. When you hit the j key for example Jumping Jack is instantly in the jumping jack position. It is allowed that the user holds down 1 or 2 as well as an exercise key at the same time j, t, s, or h. However, you don't have to handle two exercise keys at the same time or two viewpoint keys at the same time.

Point Breakdown

Code contributed to existing project is well-documented and follows the SJSU CS Department guidelines for C++1pt
Code compiles and the initial face on view drawn as described1pt
Each of the six keys individually pressed work as described (1pt each)6pts
Combinations of key strokes work as described (1/4pt each)2pts
Total10pts